﻿using System;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using Microsoft.SharePoint;
using SP.SPProjects.WebParts.Support;

namespace SP.SPProjects.WebParts.UserTasks
{
    public partial class UserTasksUserControl : UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (IsPostBack) return;
            lnkAdd.NavigateUrl = "javascript:openDialogAutoSize('" + SPContext.Current.Web.Url + SPContext.Current.Web.Lists[Constants.TASK_LIST].DefaultNewFormUrl + "')";
        }
    }
}
